const react = require('react')
const reactDOM = require('react-dom')
// const app = react.createElement('div', {
//     id: 'root'
// }, 'hello world')
const myStyle = {
    fontSize: 100,
    color: 'red'
}
const myClassName = [
    'user',
    'box',
    'container'
]
const app = <div id="root" style={myStyle} className={myClassName.join(' ')}>
    <ul>
    {
        [1,2,4].map(item => <li>{item}</li>)
    }
    </ul>
</div>

reactDOM.render(app, document.getElementById('app'), () => {
    console.log('渲染成功')
})

console.log(app)